package model;

public enum Sex {
	MALE,FEMALE;
	public String toString()
	{
		switch(this)
		{
		case MALE: return "male";
		case FEMALE: return "female";
		}
		return "sex";
	}
	
	public static Sex getByValue(String value)
	{
		if(value.equalsIgnoreCase("male")) return MALE;
		if(value.equalsIgnoreCase("female")) return FEMALE;
		return null;
	}
}
